import { createApp } from 'vue'
import { createPinia } from 'pinia'
import persist from 'pinia-plugin-persistedstate'
import App from './App.vue'
import router from './router'
import '@/assets/main.scss'

const app = createApp(App)
// 关闭开发环境下的控制台警告
app.config.warnHandler = () => {
  // 空函数表示不做任何处理，即不输出警告
}

app.use(createPinia())
app.use(router)
app.use(createPinia().use(persist))
app.mount('#app')
